﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed
#pragma once

#include "ICommandControlDefinition.h"

namespace gcmp
{
    /// \brief CommandMenuItem控件数据定义接口
    class GCMP_GUI_BASE_INTERFACE_EXPORT IMenuItemDefinition : public ICommandControlDefinition
    {
    public:  
        //\brief 创建菜单分割符
        static OwnerPtr<IMenuItemDefinition> CreateSeparator();

        /// \brief 得到图标路径
        virtual std::wstring GetIconPath() const = 0;

        /// \brief 得到子菜单项,没有子菜单项vector为空
        virtual std::vector<const IMenuItemDefinition* > GetSubMenuItems() const = 0;
    };
}
